/*Created by malinyu on 2018/9/7.*/
function phonecall() {
    $(".phonecall").on("click", function() {
        $("#popLayer,.errpop").show();
    });
}

$(function(){
    $('.return-prebtn').on('click', function(){
        window.history.back(-1);
    });
    $(".pop").load("../view/common/pop.html");
    //电话
    phonecall();

    //  微信设置
    if (typeof(WeixinJSBridge) == "undefined") {
        document.addEventListener("WeixinJSBridgeReady", function (e) {
            setTimeout(function () {
                WeixinJSBridge.invoke('setFontSizeCallback', {"fontSize": 0}, function (res) {
                    // alert(JSON.stringify(res));
                });
            }, 0);
        });
    } else {
        setTimeout(function () {
            WeixinJSBridge.invoke('setFontSizeCallback', {"fontSize": 0}, function (res) {
                // alert(JSON.stringify(res));
            });
        }, 0);
    }

});

